/*
 * Copyright (c) 2017. 深圳掌控网络有限公司. All rights reserved.
 */

package com.yiqi.lottery.feature.find.contract;

import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;
import com.yiqi.lottery.entity.bo.PostCircleBo;
import com.yiqi.lottery.entity.bo.TokenBo;
import com.yiqi.lottery.entity.bo.UploadBo;
import io.reactivex.Observable;

import java.util.List;

/**
 *      LIJUWEN
 * @email yiyayiyayaoljw@gmail.com
 * @date 2017/4/11 9:06
 */
public interface WriteCircleContract {

    interface Model {
        Observable<TokenBo> getQiniuToken();
        Observable<String> postCircle(PostCircleBo postCircleBo);

    }

    interface View extends BaseView {
        void showQiniuTokenSuccess(TokenBo data);

        void showQiniuTokenError(String error);

        void showUploadSuccess(String data);

        void showUploadError(String error);


    }


    interface Presenter extends BasePresenter {
        void postQiniuToken();
        void postCircle(String content , List<UploadBo> uploadBos);
    }
}
